.main {
  display: flex;
  flex-direction: column;
  flex: 1;

  .demo-tabs {
    display: flex;
    // flex-direction: column;
    flex: 1;

    :deep(.el-tabs__content) {
      display: flex;
      flex-direction: column;
      flex: 1;
      padding: 12px;

      .el-tab-pane {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
      }
    }

    :deep(.el-tabs__header) {
      margin: 0;
      padding: 12px 0;
      padding-right: 1px;
      background-color: #fff;

      .is-left {
        text-align: left;
      }

      .el-tabs__nav {
        .el-tabs__item {
          color: #000;
          border: none;

          &::before {
            content: '';
            width: 3px;
            height: 40px;
            position: absolute;
            left: 2px;
            background-color: #007cff;
            opacity: 0;
          }
        }

        .el-tabs__item:hover {
          color: #007cff;
        }

        .is-active {
          color: #007cff;
          background: #eaeff8;

          &::before {
            content: '';
            opacity: 1;
            transition: all 0.5s;
          }
        }
      }
    }
  }
}

:deep(.other-tabs) {
  display: flex;
  flex: 1;
  box-sizing: border-box;
  .el-tabs__header {
    padding: 0 !important;

    .el-tabs__nav {
      .el-tabs__item {
        color: #000;
        border: none;
      }

      .el-tabs__item:hover {
        color: #007cff;
      }

      .is-active {
        background: none !important;

        &::before {
          display: none;
        }
      }
    }
  }

  .el-tabs__content {
    padding: 0 !important;
    margin: 10px 0 0 !important;
    display: flex;
    flex-direction: column;
    flex: 1;

    .el-tab-pane {
      flex: 1;
      height: 100%;
      display: flex;
      flex-direction: column;

      .table {
        margin-top: 10px;
        flex: 1;
        position: relative;
      }
    }
  }
}
.other-card {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.set {
  .set-table {
    margin-bottom: 10px;

    .item {
      span {
        font-size: 12px;
      }

      :deep(.el-switch) {
        height: 26px;
      }
    }

    .tips {
      font-size: 12px;
      color: #808080;
    }
  }

  .form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;

    .form-item {
      margin-bottom: 18px;

      .bg_text {
        color: #999999;
      }

      .is-checked {
        .bg_text {
          color: #007cff;
        }
      }
    }

    .tips {
      height: 20px;
      line-height: 18px;
      font-size: 12px;
      color: #999999;
    }

    .el-checkbox {
      color: #999999;
    }
  }
}

.header {
  .mr5 {
    margin-right: 5px;
  }

  .btn {
    display: flex;
    align-items: center;
  }

  .btns {
    .btn-all {
      display: flex;
      align-items: center;
    }
  }

  .search {
    .input-with {
      width: 150px;
    }
  }

  .btn-add {
    display: flex;
    align-items: center;
  }
}

.table-list {
  margin: 10px 0;
  flex: 1;
  position: relative;
}

.top-set {
  margin-bottom: 10px;

  span {
    display: inline-block;
    font-size: 14px;
    margin-right: 10px;
  }
}

.my-header {
  h3 {
    color: #000;
    font-size: 14px;
  }
}

.btn_save {
  width: 3.2vw;
}

.btn_delete {
  width: 3.2vw;
  color: #fff;
}

.btn_cancel {
  width: 3.2vw;
}

:deep(.add-dialog) {
  .form-text {
    .form-item {
      margin-bottom: 20px;

      .item-select {
        width: 100%;
      }

      .bg_text {
        color: #999999;
      }

      .is-checked {
        .bg_text {
          color: #007cff;
        }
      }
    }

    .max-item {
      .el-form-item__label {
        display: none;
      }
    }

    .input-name {
      width: 100px;
    }

    .tips {
      display: inline-block;
      margin: 0 8px;
      font-size: 18px;
    }

    .day {
      font-size: 12px;
      margin-left: 10px;
    }
  }

  .module-form {
    .el-radio {
      margin-right: 18px;
    }

    .reservationTime {
      display: flex;

      .reservationTime-el-time-select {
        width: 140px;
      }

      .reservationTime-span {
        padding: 0 6px;
      }
    }
  }

  .ml20 {
    margin-left: 20px;
  }

  .btns {
    margin-top: 10px;
  }
}

.rule-dialog {
  .form-text {
    .form-item {
      margin-bottom: 18px;
    }

    .item-select {
      width: 100%;
    }

    .cards {
      padding-right: 5px;
      max-height: 230px;
      overflow-y: auto;

      .card {
        display: flex;
        margin-bottom: 18px;

        &:last-child {
          margin-bottom: 0;
        }

        .icons {
          padding-top: 8px;
          width: 35px;
          display: flex;
          justify-content: space-between;

          i {
            cursor: pointer;
          }
        }
      }

      .item-cond {
        flex: 1;

        .item {
          flex: 1;
          padding: 10px;
          border-radius: 2px;
          border: 1px solid #decfe6;

          .width-select {
            width: 100%;
          }

          .mb10 {
            margin-bottom: 18px;
          }
        }
      }
    }

    p {
      color: #007cff;
    }

    .tips {
      height: 30px;
      padding: 0 10px;
      margin: 18px 0;
      color: #007cff;
      border-radius: 2px;
      border: 1px solid #007cff;
      box-sizing: border-box;
      background: #eef2f7;
    }
  }
}

:deep(.field-dialog) {
  .form-text {
    .form-item {
      margin-bottom: 20px;

      .bg_text {
        color: #999999;
      }

      .is-checked {
        .bg_text {
          color: #007cff;
        }
      }
    }
  }

  .module-form {
    .el-radio {
      margin-right: 18px;
    }
  }

  .field-text {
    padding-left: 20px;
    margin-bottom: 10px;

    .add {
      color: #007cff;
      cursor: pointer;
    }
  }

  .list {
    margin-bottom: 10px;
    max-height: 220px;
    overflow-y: auto;
    height: 100%;

    .field-form {
      padding-left: 15px;
    }

    .text-item {
      margin-bottom: 18px;

      .num {
        width: 25px;
        text-align: center;
        font-size: 12px;
        margin-right: 12px;
      }

      .text-input {
        width: 380px;
      }

      .delete {
        margin-left: 20px;
        font-size: 12px;
        color: #f56c6c;
        cursor: pointer;
      }

      .el-form-item__error {
        left: 38px;
      }
    }
  }
}

.el-tag.el-tag--success {
  --el-tag-text-color: #00c0c0;
  --el-tag-bg-color: #ebf6f6;
  --el-tag-border-color: #ebf6f6;
  --el-tag-hover-color: #00c0c0;
}

.el-tag.el-tag--info {
  --el-tag-border-color: var(--el-color-info-light-9);
}

.el-tag {
  --el-tag-border-color: var(--el-color-primary-light-9);
}

.el-tag.el-tag--warning {
  --el-tag-border-color: var(--el-color-warning-light-9);
}
